package be.sc.classicnetwork.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

/**
 * Logs the user navigation.
 */
@Entity
public class UserLog extends AbstractEntity {

    /**  */
    private static final long serialVersionUID = -3214569297225228574L;

    private String sessionId;

    private String url;

    @ManyToOne
    private Car carViewed;

    @Transient
    private boolean persistable = true;

    public String getUrl() {
	return url;
    }

    public void setUrl(String url) {
	this.url = url;
    }

    public Car getCarViewed() {
	return carViewed;
    }

    public void setCarViewed(Car carViewed) {
	this.carViewed = carViewed;
    }

    public boolean isPersistable() {
	return persistable;
    }

    public void setPersistable(boolean persistable) {
	this.persistable = persistable;
    }

    public String getSessionId() {
	return sessionId;
    }

    public void setSessionId(String sessionId) {
	this.sessionId = sessionId;
    }

}
